// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'FormulaSetId',
        footer: "Foots",
        cnName: '工艺配方主表',
        name: 'formulasetting',
        newTabEdit: false,
        url: "/formulasetting/",
        sortName: "FormulaSetId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"FormulaTag":"","process_stage":"","equipment_type":"","min_value":"","max_value":"","last_updated":""};
    const editFormOptions = [[{"title":"配方标识","required":true,"field":"FormulaTag"},
                               {"title":"工艺过程","required":true,"field":"process_stage"},
                               {"title":"设备类型","field":"equipment_type"}],
                              [{"title":"设定最小值","required":true,"field":"min_value","type":"decimal"},
                               {"title":"设定最大值","required":true,"field":"max_value","type":"decimal"},
                               {"title":"更新时间","field":"last_updated","disabled":true}]];
    const searchFormFields = {"FormulaTag":""};
    const searchFormOptions = [[{"title":"配方标识","field":"FormulaTag"}]];
    const columns = [{field:'FormulaSetId',title:'FormulaSetId',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'FormulaTag',title:'配方标识',type:'string',link:true,width:110,require:true,align:'left'},
                       {field:'process_stage',title:'工艺过程',type:'string',width:110,require:true,align:'left'},
                       {field:'equipment_type',title:'设备类型',type:'string',width:110,align:'left'},
                       {field:'min_value',title:'设定最小值',type:'decimal',width:110,require:true,align:'left'},
                       {field:'max_value',title:'设定最大值',type:'decimal',width:110,require:true,align:'left'},
                       {field:'last_updated',title:'更新时间',type:'datetime',width:110,readonly:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}